package com.zpy.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("borrow")
public class Borrow {
    @TableId
    private Integer id;
    private Integer uid;
    private Integer bid;
    private String bunit;
    private String uunit;
    @TableField(fill = FieldFill.INSERT)
    private Date borrowTime;
    private Date returnTime;
    private String reason;
    private String username;
    private String phone;
    private String ps;
    private Integer status;

    @TableField(exist = false)
    private String bname;
    @TableField(exist = false)
    private String author;
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private double price;
    @TableField(exist = false)
    private String press;
    @TableField(exist = false)
    private String type;
}
